using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
    public class T_Project_CommissionConditions : DBInteractionBase
    {
        #region Class Member Declarations
        private SqlDecimal _project_CommissionConditions_Tally;
        private SqlInt32 _project_CommissionConditions_DayNumber, _project_CommissionConditions_DayType, _project_CommissionConditions_Type;
        private SqlGuid _project_CommissionConditions_ID, _project_CommissionConditions_MainID;
        #endregion


        public T_Project_CommissionConditions()
        {
            // Nothing for now.
        }


        #region Class Property Declarations
        public SqlGuid Project_CommissionConditions_ID
        {
            get
            {
                return _project_CommissionConditions_ID;
            }
            set
            {
                _project_CommissionConditions_ID = value;
            }
        }


        public SqlGuid Project_CommissionConditions_MainID
        {
            get
            {
                return _project_CommissionConditions_MainID;
            }
            set
            {
                SqlGuid project_CommissionConditions_MainIDTmp = (SqlGuid)value;
                if (project_CommissionConditions_MainIDTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_CommissionConditions_MainID", "Project_CommissionConditions_MainID can't be NULL");
                }
                _project_CommissionConditions_MainID = value;
            }
        }


        public SqlInt32 Project_CommissionConditions_Type
        {
            get
            {
                return _project_CommissionConditions_Type;
            }
            set
            {
                SqlInt32 project_CommissionConditions_TypeTmp = (SqlInt32)value;
                if (project_CommissionConditions_TypeTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_CommissionConditions_Type", "Project_CommissionConditions_Type can't be NULL");
                }
                _project_CommissionConditions_Type = value;
            }
        }


        public SqlInt32 Project_CommissionConditions_DayNumber
        {
            get
            {
                return _project_CommissionConditions_DayNumber;
            }
            set
            {
                SqlInt32 project_CommissionConditions_DayNumberTmp = (SqlInt32)value;
                if (project_CommissionConditions_DayNumberTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_CommissionConditions_DayNumber", "Project_CommissionConditions_DayNumber can't be NULL");
                }
                _project_CommissionConditions_DayNumber = value;
            }
        }


        public SqlInt32 Project_CommissionConditions_DayType
        {
            get
            {
                return _project_CommissionConditions_DayType;
            }
            set
            {
                SqlInt32 project_CommissionConditions_DayTypeTmp = (SqlInt32)value;
                if (project_CommissionConditions_DayTypeTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_CommissionConditions_DayType", "Project_CommissionConditions_DayType can't be NULL");
                }
                _project_CommissionConditions_DayType = value;
            }
        }


        public SqlDecimal Project_CommissionConditions_Tally
        {
            get
            {
                return _project_CommissionConditions_Tally;
            }
            set
            {
                SqlDecimal project_CommissionConditions_TallyTmp = (SqlDecimal)value;
                if (project_CommissionConditions_TallyTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_CommissionConditions_Tally", "Project_CommissionConditions_Tally can't be NULL");
                }
                _project_CommissionConditions_Tally = value;
            }
        }
        #endregion
    }
}
